/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package service;

import po.Activity;
import java.util.List;
import dao.ActivityDao;
import po.Comment;
import po.User;
import po.Useractrelation;
/**
 *
 * @author HX
 */
public interface ActivityService {
    void setActivityDao(ActivityDao activityDao);

    Activity getActivity(int activityId);

    void addActivity(Activity activity);

    List<Activity> getUserFutureActivities(int userId);

    List<Activity> getUserHisoryActivities(int userId);

    List<Activity> getOrgFutureActivities(int orgId);

    List<Activity> getOrgHistoryActivities(int orgId);

    void deleteActivity(int activityId);

    List getActors(int activityId);

    List getMembers(int orgId);

    boolean isActor(int activityId, int userId);

    void editActivityBehavior(int activityId, int userId, String behavior);

    void joinActivity(Useractrelation useractrelation);
    
    void editActivityScore(int activityId, int userId, int score);

    List<Useractrelation> getUseractrelation(int activityId);

    List<Activity> getOrgActivities(int orgId);

    void addUseractrelations(List<Useractrelation> useractrelations);

    void askForLeave(int activityId, int userId);

    List<Comment> getComments(int activityId);

    void addComment(int activityId, int userId, String content);

    void deleteComment(int commentId);
}
